package com.fish.service.impl.passport;

import java.util.List;

import com.fish.common.constant.QueryPage;
import com.fish.passport.dao.PerformTargetDAO;
import com.fish.product.po.PerformTarget;
import com.fish.service.passport.PerformTargetService;

public class PerformTargetServiceImpl implements PerformTargetService {
	private PerformTargetDAO performTargetDAO;

	@Override
	public int queryTargetCountByParams(String targetName) {
		return this.performTargetDAO.queryTargetCountByParams(targetName);
	}

	@Override
	public List<PerformTarget> queryTargetByParams(String targetName, int start, int pageSize) {
		return this.performTargetDAO.queryTargetByParams(targetName, start, pageSize);
	}

	@Override
	public void addPerformTarget(PerformTarget performTarget) {
		this.performTargetDAO.addPerformTarget(performTarget);

	}

	@Override
	public void updatePerformTarget(PerformTarget performTarget) {
		this.performTargetDAO.updatePerformTarget(performTarget);

	}

	@Override
	public void deleteTargetById(String targetId) {
		this.performTargetDAO.deleteTargetById(targetId);

	}

	@Override
	public PerformTarget getPerformTargetById(String targetId) {
		return this.performTargetDAO.getPerformTargetById(targetId);
	}

	public PerformTargetDAO getPerformTargetDAO() {
		return performTargetDAO;
	}

	public void setPerformTargetDAO(PerformTargetDAO performTargetDAO) {
		this.performTargetDAO = performTargetDAO;
	}

	@Override
	public Long queryPerformTargetCountByObject(PerformTarget performTarget) {
		return this.performTargetDAO.queryPerformTargetCountByObject(performTarget);
	}

	@Override
	public List<PerformTarget> queryPerformTargetByObject(PerformTarget performTarget, QueryPage queryPage) {
		return this.performTargetDAO.queryPerformTargetyObject(performTarget,queryPage);
	}

	
}
